package com.ipeony.web;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author iPeony
 * @file AboutController.java
 * @package com.ipeony.web
 * @project template
 * @version 1.0
 */
@Controller
@RequestMapping("/freeMarker")
public class AboutController {
	
	private static final Logger logger = Logger.getLogger(AboutController.class);

	@RequestMapping("/about")
	public String about(ModelMap map) {
		map.addAttribute("author", "iPeony");
		logger.info("Maping /freeMarker/about To /about.ftl");
		logger.error("No error");
		return "/about.ftl";
	}
}